package com.augurit.wf.bi.web.form;

import com.augurit.common.base.form.BaseForm;

public class WfPageElementForm extends BaseForm{
	
	//页面元素类型
	public static String BUTTON_ELEM_TYPE = "button";	//按钮	
	public static String FIELD_ELEM_TYPE = "field";		//字段
	public static String CONTAIN_ELEM_TYPE = "contain";	//容器
	public static String FORM_ELEM_TYPE = "form";		//表单
	public static String PANEL_ELEM_TYPE = "panel";		//panel
	public static String TOOLBAR_ELEM_TYPE = "toolbar";	//工具栏
	//城管委修改，开始
	public static String PRINT_ELEM_TYPE = "print";		//打印模板
	//城管委修改，结束
	//容器类型子元素定义
	public static String[] childElemsInContain = {  
		WfPageElementForm.FORM_ELEM_TYPE, 
		WfPageElementForm.PANEL_ELEM_TYPE, 
		WfPageElementForm.TOOLBAR_ELEM_TYPE,
		//城管委修改,开始
		WfPageElementForm.PRINT_ELEM_TYPE
		//城管委修改,结束
	};
	public static String HIDDEN = "1";
	public static String NOT_HIDDEN = "0";
	
	public static String LOCKED = "1";
	public static String NOT_LOCKED = "0";
	
	public static String PUBLIC = "1";
	public static String NOT_PUBLIC = "0";
	
	public static String ACTIVE="1";
	public static String NOT_ACTIVE="0";
	
	public final static String INVOKE_MODE_IFRAME="iframe";
	public final static String INVOKE_MODE_AUTOLOAD="autoload";
	
	// 属性
	private Long id;
	private String elementCode;
	private String elementName;
	private Long parentId;
	private String elementType;
	private String elementGroup;
	private String isActive;
	private String memo;
	private String isPublic;
	private String elementTip;
	private String smallImgPath;
	private String middleImgPath;
	private String bigImgPath;
	private String elementInvoke;
	private Integer elementSortNo;
	private Integer groupSortNo;
	private String elementInvokeMode;
	
	//扩展属性
	private Long templateId;		//所属模板ID
	private String templateName;	//所属模板名称
	private String parentElementCode;
	private boolean hidden;
	private boolean locked;

	public Integer getElementSortNo() {
		return elementSortNo;
	}

	public void setElementSortNo(Integer elementSortNo) {
		this.elementSortNo = elementSortNo;
	}

	public Integer getGroupSortNo() {
		return groupSortNo;
	}

	public void setGroupSortNo(Integer groupSortNo) {
		this.groupSortNo = groupSortNo;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getElementCode() {
		return elementCode;
	}

	public void setElementCode(String elementCode) {
		this.elementCode = elementCode;
	}

	public String getElementName() {
		return this.elementName;
	}

	public void setElementName(String elementName) {
		this.elementName = elementName;
	}
	
	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getElementType() {
		return this.elementType;
	}

	public void setElementType(String elementType) {
		this.elementType = elementType;
	}
	public String getElementGroup() {
		return this.elementGroup;
	}

	public void setElementGroup(String elementGroup) {
		this.elementGroup = elementGroup;
	}
	public String getIsActive() {
		return this.isActive;
	}

	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getIsPublic() {
		return this.isPublic;
	}

	public void setIsPublic(String isPublic) {
		this.isPublic = isPublic;
	}
	public String getElementTip() {
		return this.elementTip;
	}

	public void setElementTip(String elementTip) {
		this.elementTip = elementTip;
	}
	public String getSmallImgPath() {
		return this.smallImgPath;
	}

	public void setSmallImgPath(String smallImgPath) {
		this.smallImgPath = smallImgPath;
	}
	public String getMiddleImgPath() {
		return this.middleImgPath;
	}

	public void setMiddleImgPath(String middleImgPath) {
		this.middleImgPath = middleImgPath;
	}
	public String getBigImgPath() {
		return this.bigImgPath;
	}

	public void setBigImgPath(String bigImgPath) {
		this.bigImgPath = bigImgPath;
	}
	public String getElementInvoke() {
		return this.elementInvoke;
	}

	public void setElementInvoke(String elementInvoke) {
		this.elementInvoke = elementInvoke;
	}

	public Long getTemplateId() {
		return templateId;
	}

	public void setTemplateId(Long templateId) {
		this.templateId = templateId;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}
	
	@Override
	public boolean equals(Object other){
		if(this == other) return true;
		
		if(!(other instanceof WfPageElementForm))
			return false;
		
		WfPageElementForm form = (WfPageElementForm)other;
		return this.id.equals(form.getId());
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public boolean isLocked() {
		return locked;
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

	public String getElementInvokeMode() {
		return elementInvokeMode;
	}

	public void setElementInvokeMode(String elementInvokeMode) {
		this.elementInvokeMode = elementInvokeMode;
	}

	public String getParentElementCode() {
		return parentElementCode;
	}

	public void setParentElementCode(String parentElementCode) {
		this.parentElementCode = parentElementCode;
	}
	
}